'use strict';

module.exports = app => {
	const {INTEGER,DECIMAL,STRING}=app.Sequelize;

	const Sim=app.model.define('sim',{
		id:{type:INTEGER,primaryKey:true},
		operatorType_id:{type:INTEGER},
		packageOperator_id:{type:INTEGER},
		packageUser_id:{type:INTEGER},
		supplier_id:{type:INTEGER},
		dispatchDeck_id:{type:INTEGER},
		flow:{type:DECIMAL(12,2)},
		card_usage:{type:INTEGER},
		is_sup_internet:{type:INTEGER},
		is_real_name:{type:INTEGER},
		status:{type:INTEGER},
		card_status:{type:INTEGER},
		card_form:{type:INTEGER},
		remark:{type:STRING(300)},
		start_time:{type:INTEGER},
		end_time:{type:INTEGER},
		create_time:{type:INTEGER},
		update_time:{type:INTEGER}});
	return Sim;
};